package com.qk.common.enums;

public enum ParamEnum implements  Code{
      PARAM_ERROR("参数错误", 10001),
    //操作异常
    OPERATION_ERROR("操作异常", 10002),
    ;

    private final String msg;
    private final int code;

    ParamEnum(String msg, int code) {
        this.msg = msg;
        this.code = code;
    }

    @Override
    public int getCode() {
        return this.code;
    }

    @Override
    public String getMsg() {
        return this.msg;
    }
}